
typedef int ElemType;

struct SequenceStack{
    ElemType *data;
    unsigned char top;
    unsigned int capacity;
};
typedef struct SequenceStack SeqStack;

int InitStack(SeqStack *stack);
int DestroyStack(SeqStack *stack);
int ClearStack(SeqStack *stack);
int StackEmpty(SeqStack stack);
int GetTop(SeqStack stack,ElemType *e);
int Push(SeqStack *stack,ElemType e);
int Pop(SeqStack *stack,ElemType *e);
int StackLength(SeqStack stack);